package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.TourImage;
import bist.believeinstep.impl.TourImageTemplate;
import bist.believeinstep.util.Util;

public class TourImageService {
	private TourImageTemplate tourImageTemplate;
	
	public TourImageService(){
		tourImageTemplate = (TourImageTemplate)Util.getConnection("tourImageTemplate");
	}
	public void create(TourImage tourImage){
		tourImageTemplate.create(tourImage);
	}
	public void update(TourImage tourImage){
		tourImageTemplate.update(tourImage);
	}
	public void delete(Integer id){
		tourImageTemplate.delete(id);
	}
	public void delete(String code){
		tourImageTemplate.delete(code);
	}
	public TourImage getTourImage(Integer id){
		return tourImageTemplate.getTourImage(id);
	}
	public TourImage getTourImage(String imageId){
		return tourImageTemplate.getTourImage(imageId);
	}
	public List<TourImage> listTourImage(){
		return tourImageTemplate.listTourImage();
	}
}
